Skip to content

gh-115999: Add free-threaded specialization for FOR_ITER#128798

Merged
Yhg1s merged 15 commits intopython:mainfrom
Yhg1s:for-iter-spec
Mar 12, 2025
Merged

gh-115999: Add free-threaded specialization for FOR_ITER#128798
Yhg1s merged 15 commits intopython:mainfrom
Yhg1s:for-iter-spec

Conversation

@Yhg1s
Copy link
Member

@Yhg1s Yhg1s commented Jan 13, 2025

Add free-threaded versions of existing specialization for FOR_ITER (list, tuples, fast range iterators and generators), without significantly affecting their thread-safety. (Iterating over shared lists/tuples/ranges should be fine like before. Reusing iterators between threads is not fine, like before. Sharing generators between threads is a recipe for significant crashes, like before.)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants